package com.kll.carolinehmibiz.presentation.listener

import com.kll.carolinehmibiz.net.bean.GetFamilyResponse

interface MainContactFamilyProtocol {

    interface IView {
        /**
         * 获取家人列表成功
         */
        fun getFamilySuccessed(data: ArrayList<GetFamilyResponse>)
        /**
         * 获取家人列表失败
         */
        fun getFamilyFailed(code: Int, message: String)
        /**
         * 获取用户活跃的腾讯云IM用户成功
         */
        fun getTencentIdSuccessed(tencentUserId: String)
        /**
         * 获取用户活跃的腾讯云IM用户失败
         */
        fun getTencentIdFailed(code: Int, message: String)
        /**
         * 获取RoomId成功
         */
        fun getRoomIdSuccess(tencentUserId: String,roomid: String)
        /**
         * 获取RoomId失败
         */
        fun getRoomIdFailed(code: Int, message: String)
    }

    interface IPresenter {
        /**
         * 获取家人列表
         */
        fun getFamily()
        /**
         * 获取用户活跃的腾讯云IM用户
         */
        fun getTencentId(tencentUserId: String)
        /**
         * 获取房间号ID
         */
        fun getRoomId(tencentUserId: String)
    }

}